

package com.laxcen.basiclib.core.db.util;


public class OtherUtils {
    private OtherUtils() {
    }



    private static final int STRING_BUFFER_LENGTH = 100;

    // get the sub string for large string
    public static String getSubString(final String str, int start, int end) {
        return new String(str.substring(start, end));
    }

    public static StackTraceElement getCurrentStackTraceElement() {
        return Thread.currentThread().getStackTrace()[3];
    }

    public static StackTraceElement getCallerStackTraceElement() {
        return Thread.currentThread().getStackTrace()[4];
    }


}
